<template>
    <view>
        <!-- <OrderItemService :item="item" @click.stop="$emit('click', item)"></OrderItemService> -->
        <orderItemBattery v-if="type == 'goods'" @click.stop="$emit('click', item)"></orderItemBattery>
        <OrderItemLease v-if="type == 'lease'" @click.stop="$emit('click', item)"></OrderItemLease>
        <OrderItemLock v-if="type == 'lock'" @click.stop="$emit('click', item)"></OrderItemLock>
        <!-- <OrderItemRescue v-if="type == 'rescue'" @click.stop="$emit('click', item)"></OrderItemRescue> -->
        <OrderItemService v-if="type == 'service'" @click.stop="$emit('click', item)"></OrderItemService>
    </view>
</template>

<script>
// import { NewOrder,NewFile } from "./components/order-item-battery"; // 租车

import orderItemBattery from './order-item-battery.vue'; //租车
import OrderItemLease from './order-item-lease.vue'; //进行中
import OrderItemLock from './order-item-lock.vue'; //待取货
import OrderItemService from './order-item-service.vue'; //已完成
export default {
    components: { orderItemBattery, OrderItemLease, OrderItemLock, OrderItemService },
    name: 'lz-order-item',
    props: {
        type: {
            type: String,
            default: 'battery' //
        },
        item: {
            type: Object,
            default: () => {}
        }
    },
    data() {
        return {};
    },
    methods: {}
};
</script>

<style scoped lang="scss">
.comimng {
    width: 100%;
}
.title {
    margin: 16rpx;
    color: #00091a;
    font-size: 32rpx;
}
.tip {
    font-size: 20rpx;
    color: #3377ff;
    padding: 8rpx;
    border-radius: 8rpx;
    margin-right: 16rpx;
    background: #f7faff;
}
.money {
    margin-top: 8rpx;
    color: #ff6401;
    font-size: 20rpx;
    .moneyN {
        font-size: 32rpx;
        font-weight: bold;
    }
    .cost {
        font-size: 24rpx;
        color: #ccced1;
        text-decoration: line-through;
        margin-left: 8rpx;
    }
}
</style>
